package com.example.demo.domain.po;

import com.example.demo.config.annotation.PhoneAnnotation;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @Author: 聂吉泽
 * @Description:
 * @Date: create in 2021/11/4 16:19
 */
public class SystemUser implements Serializable {
    private Integer id;
    @NotBlank
    private String username;
    @NotEmpty
    private String password;

    @PhoneAnnotation
    private String telphone;

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
